

// Decompiler options: packimports(3) fieldsfirst ansi 
// Source File Name:   cv.java

package com.zelix;

import java.util.*;

// Referenced classes of package com.zelix:
//            hs

public class cv
    implements Enumeration
{

    private Object a[];
    private int b;
    private int c;

    public cv(Object aobj[])
    {
        if(aobj == null)
        {
            throw new IllegalArgumentException();
        } else
        {
            a = aobj;
            b = a.length;
            return;
        }
    }

    public static Enumeration a(Collection collection)
    {
        Object aobj[];
        int i;
        Iterator iterator;
        int j;
        j = hs.c;
        aobj = new Object[collection.size()];
        i = 0;
        iterator = collection.iterator();
        if(j == 0) goto _L2; else goto _L1
_L1:
        aobj[i++] = iterator.next();
_L2:
        if(!iterator.hasNext())
            return new cv(aobj);
        if(true) goto _L1; else goto _L3
_L3:
    }

    public final boolean hasMoreElements()
    {
        return c < b;
    }

    public final Object nextElement()
        throws NoSuchElementException
    {
        if(c >= b)
            throw new NoSuchElementException(getClass().getName());
        else
            return a[c++];
    }

    public void a(Comparator comparator)
    {
        if(c > 0)
        {
            throw new IllegalStateException();
        } else
        {
            Object aobj[] = a;
            a = (Object[])a.clone();
            Arrays.sort(a, comparator);
            return;
        }
    }
}